#!/usr/bin/env node

const log = console.log;

log(`file name:${__filename}`);
log(`dir name:${__dirname}`);

//拼接路径
//1、利用+拼接（不建议）
let fileName = __dirname + './views/view.html';
log('fileName:',fileName);

//2、path（好）
const path = require('path');
let filesName = path.join(__dirname, 'view', 'index.html');
log('filesName:',filesName);
